home *** CD-ROM | disk | FTP | other *** search
- symbols
- message startup
- message converse
- message entered
-
- sector triggersector
-
- thing jawa
-
- keyframe wavingflagKey=jawa_wavingflag.key
-
- end
-
-
-
- code
- startup:
- wait_time=1.3;
- playkey(jawa, wavingflagKey, 1, 0);
- return;
-
- entered:
- // dwplaycharacterspeech("JFC010", "t6ja001.wav");
- // dwcleardialog();
- return;
-
- converse:
- converse:
- dwPlayPlayerResponse();
- playerpos=getthingpos(player);
- # What response did the player select?
- ResponseID = dwGetPlayerResponse();
-
-
- if (ResponseID == 0 && !ConversationActive)
- {
- # Response 0 is reserved to indicate that a conversation is starting
- ConversationActive = 1;
- playsong(0,0,0);
- dwfreezeplayer();
- # Use the font "SerpentineICGLt12E" for gonk,
- # display the text in color 96 (white)
- ResponseID = 1;
-
- }
-
- if (ResponseID == 1) { #beginning Node
- dwplaycharacterspeech("JFC000", "t3ja001.wav");
-
-
- dwAddResponse(100, "JFP001", "t1xx033.wav", 71); // Back to root node (ID 1);
- //dwAddResponse(200, "JFP220", "t9xx022.wav", 71); // Back to root node (ID 1);
- }
- if (ResponseID == 100)
- {
- dwplaycharacterspeech("JFC002", "t9ja002.wav");
- dwAddResponse(7, "JFP003", "", 20); // Back to root node (ID 1);
- }
- if (ResponseID == 200)
- {
- dwplaycharacterspeech("JFC220", "t9ja006.wav");
- dwAddResponse(7, "JFP003", "", 20); // Back to root node (ID 1);
- }
-
-
-
- if (ResponseID == 7)
- {
- #PLAYER: Gotta go!
- dwcleardialog();
- # Terminate the conversation
- ConversationActive=0;
- ShuffleTracks(2, 3, 4, 5);
- # Enable the player
- dwunfreezeplayer();
-
- call walkthatjawa;
- }
- return;
-
-
-
-
-
-
-
-
- end
-